public class Main1070 {
    public static void main(String[] args) {
        int i;
        for (i=100;i<200;i++);
        if (i%3==2&&i%5==3&&i%7==5)

        System.out.println(i);
    }
}
